﻿<!DOCTYPE html>
<html>
<head>
    <title>top.html</title>
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
   
    <script type="text/javascript">
        $(function () {
            $.ajax({
                url: 'frm.ashx?type=getUserInfo',
                type: 'post',
                data: '',
                dataType: 'json',
                success: function (r) {
                    $('#spanUser').html(r[0].strRealName);
                }, error: function (r) {

                }
            });
        });

        function BackUpDB() {
            $.ajax({
                url: 'frm.ashx?type=BackUpDB',
                type: 'post',
                data: '',
                dataType: 'text',
                success: function (r) {
                    alert("备份数据库成功!");
                }, error: function (r) {
                    alert("备份数据库成功!");
                }
            });
        }

//        function BackUpDB() {
//            window.open('backupdb.aspx', 'backupdb', 'height=100,width=300,top=50,left=200,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=yes, status=no');
//        }
    </script>
    <style type="text/css">
        *
        {
            padding: auto;
            margin: auto;
        }
        /*.pagehead {
            padding: 0px 0px;
            width: 100%;
            height: 60px;
            background: #00bfff;
            box-shadow: inset 0 0 10px #2f4f4f;
        }

  


            .pagehead  .logo {
              position:absolute;
              top:0px;
              left:0px;
              width:60px;
              height:60px;
            }

                .pagehead .logo img {
                    width: 60px;
                    height: 58px;
                }


            .pagehead .head-userinfo {
                position: absolute;
                top: 0px;
                left: 60px;
            }

                .pagehead .head-userinfo p {
                    margin-top: 7px;
                    margin-left: 10px;
                }

                    .pagehead .head-userinfo p span {
                        font-family: 'Hiragino Sans GB','Microsoft Yahei',"WenQuanYi Micro Hei",SimSun,Tahoma,Arial,Helvetica,STHeiti;
                        font-size: 14px;
                        color: #b5e7ff;
                    }
            .pagehead .pagetitle {
                position: absolute;
                top: 0px;
                left: 260px; 
                width:100%;
                margin-left:-260px;
            }

                .pagehead .head-wbinfo {
                   
                    text-align: center;
                }
                    .pagehead  .head-wbinfo p {
                        margin-top: 10px;
                        font-family: 'Hiragino Sans GB','Microsoft Yahei',"WenQuanYi Micro Hei",SimSun,Tahoma,Arial,Helvetica,STHeiti;
                        font-size: 28px;
                        color: gold;
                    }



                .pagehead  .head-setting {
                    position: absolute;
                    top: 0px;
                    right: 0px;
                    width: 200px;
                    padding:20px;
                }
                    .pagehead  .head-setting ul {
                    }

                        .pagehead .head-setting ul li {
                            display: inline-block;
                            padding: 0px 0px;
                        }
                            .pagehead  .head-setting ul li a {
                                text-decoration: none;
                                background: #b5e7ff;
                                color: #ff5500;
                                font-family: 'Hiragino Sans GB','Microsoft Yahei',"WenQuanYi Micro Hei",SimSun,Tahoma,Arial,Helvetica,STHeiti;
                                font-size: 14px;
                               padding:5px 10px;
                               border-radius:5px;
                            }*/



        .pagehead-box {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            justify-content:space-between;
            align-items: stretch;
            height: 60px;
            background: #00bfff;
            box-shadow: inset 0 0 10px #2f4f4f;
        }
            .pagehead-box .boxinner {      
                height: 60px;
            }
            .pagehead-box .logo {
                justify-content: flex-start;
                max-width: 60px;
              
            }
            
             .pagehead-box .logo img {
                width: 60px;
                height: 60px;
               
            }
            .pagehead-box .pagetitle {
                flex-shrink:1;
            }
            .pagehead-box .head-setting {
            }

                .pagehead-box .head-setting ul {
                }

                    .pagehead-box .head-setting ul li {
                        display: inline-block;
                        padding: 0px 0px;
                    }

                        .pagehead-box .head-setting ul li a {
                            text-decoration: none;
                            background: #b5e7ff;
                            color: #ff5500;
                            font-family: 'Hiragino Sans GB','Microsoft Yahei',"WenQuanYi Micro Hei",SimSun,Tahoma,Arial,Helvetica,STHeiti;
                            font-size: 14px;
                            padding: 5px 10px;
                            border-radius: 5px;
                        }
    </style>
</head>
<body>
    <div class="pagehead-box">
        <div class="boxinner logo">
            <img src="../images/LOGO.png" alt="" />

        </div>
        <div class="boxinner head-userinfo">
            <p><span>网点:</span><span>总部</span></p>
            <p><span>用户:</span><span id="spanUser"></span></p>
        </div>
        <div class="boxinner pagetitle">
            <p>山西共富•粮安天下粮食银行</p>
           
        </div>
        <div class="boxinner head-setting">
            <ul>
                <li><a href="frmmain.htm" target="main">主页</a> </li>
                <li><a href="#" onclick="BackUpDB()">备份</a></li>
                <li><a href="../default.aspx?Type=loginOut" target="_parent">退出</a></li>
            </ul>
        </div>
    </div>

    
    <div style="display: none">
        <input type="text" id="frmWBID" />
        <input type="text" id="frmID" />
    </div>
</body>
</html>
